﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
    public class TermAmountSubtract
    {
        #region Properties
        // TERM_AMOUNT_SUBTRACT_ID
        public virtual int TermAmountSubtractId { set; get; }
        // TERM_AMOUNT_SUBTRACT_DESC
        public virtual String TermAmountSubtractDesc { set; get; }
        // TERM_AMOUNT_SUBTRACT_TYPE
        public virtual String TermAmountSubtractType { set; get; }
        // TERM_AMOUNT_SUBTRACT_DATE
        public virtual DateTime? TermAmountSubtractDate { set; get; }
        // TERM_AMOUNT_SUBTRACT_ASSET
        public virtual String TermAmountSubtractAsset { set; get; }
        // TERM_AMOUNT_SUBTRACT_AMOUNT
        public virtual int? TermAmountSubtractAmount { set; get; }
        // TERM_AMOUNT_SUBTRACT_CUMULATIVE
        public virtual int? TermAmountSubtractCumulative { set; get; }
        // TERM_AMOUNT_SUBTRACT_LAST_UPDATE
        public virtual DateTime? TermAmountSubtractLastUpdate { set; get; }
        // TERM_AMOUNT_SUBTRACT_REMARK
        public virtual String TermAmountSubtractRemark { set; get; }
        // CREATE_USER_ID1
        public virtual String CreateUserId1 { set; get; }
        // CREATE_TS1
        public virtual DateTime CreateTs1 { set; get; }

        #endregion



        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;
            if (obj.GetType() != typeof(TermAmountSubtract) && !(obj is TermAmountSubtract))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}", TermAmountSubtractId);
        }
    }
}
